import 'package:flutter/cupertino.dart';
import 'package:frametrim/utility/screen.dart';
import 'package:frametrim/utility/sq_color.dart';

/*左右都有文字*/
class SystemViewWithText extends StatelessWidget {
  late String nameLeft;
  String? nameRight;

  // SystemViewWithText(required this.nameLeft, this.nameRight);
  SystemViewWithText({Key? key, required this.nameLeft, this.nameRight})
      : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      padding: EdgeInsets.only(left: 15,right: 15),
      width: Screen.width,
      height: 52,
      child: Row(
        children: <Widget>[
          Text(
            nameLeft,
            style: TextStyle(fontSize: 16, color: SQColor.color_222222),
          ),
          Expanded(child: Container()),
          nameRight!=null ? Text(
            nameRight!,
            style: TextStyle(fontSize: 16, color: SQColor.color_666666),
          ) :Container(),
          // SizedBox(width: 5,),
          Image.asset(
            'image/icon_more_grey.png',
            width: 15,
            height: 13,
          ),
        ],
      ),
    );
  }
}
